home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / IP_Graph3D / FourSidedPolygon.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-17  |  415 b   |  33 lines

  1. #import <objc/Object.h>
  2.  
  3.  
  4. struct Point3D
  5. {
  6.     float x,y,z;
  7. };
  8.  
  9. typedef struct Color
  10. {
  11.     float r,g,b;
  12. } RGBcolor;
  13.  
  14. typedef struct Point3D point3D;
  15. typedef struct Point3D vector3D; 
  16.  
  17.  
  18. @interface FourSidedPolygon:Object
  19.  
  20. {
  21.     point3D        vertex[4];
  22.     vector        normal1, normal2;
  23.     RGBcolor    topColor;
  24.     RGBcolor    bottomColor;
  25.     BOOL        viewingTop1, viewingTop2;
  26.     BOOL        visible1,visible2; 
  27. }
  28.  
  29. - init;
  30. - drawSelf;
  31. - calculateNormal;
  32. @end
  33.